package com.cq.service;

import com.cq.pojo.Topic;

import java.util.List;

/**
 * @Author: 悠久的苍穹
 * @Date: 2021/2/2 14:52
 * @Description: 话题服务层
 * @Version: 1.0
 */
public interface TopicService {

    int addTopic(Topic topic);

    List<Topic> getTopics(int page, int limit);

    int getCount();

    int getTopicCount(String start, String end);

    List<Topic> getTopicsByTime(int page, int limit, String start, String end);

    List<Topic> getTopicAndReply();

    void deleteTopicById(int id);

    Topic getTopicById(int id);

    void updateTopicHot(int id);

    void updateTopicCold(int id);

    List<Topic> getHotTopics();

    Topic getTopicAndReplyById(int id);

    List<Topic> getTopicAndReplyByCreate(String nickName);
}
